import { Component } from '@angular/core';
import { ApiService } from 'src/app/core/api';
import { NzMessageService } from 'ng-zorro-antd';
import { ActivatedRouteSnapshot, ActivatedRoute } from '@angular/router';

@Component({
    templateUrl: './noticeDel.html',
    styleUrls: ['./noticeDel.scss']
})
export class NoticeDelComponent {
    del;

    constructor(
        private api: ApiService,
        private msg: NzMessageService,        
        private route: ActivatedRoute       
    ) { 
        this.getDel(this.route.queryParams['value']);
    }

    onLoadMore(){

    };
    toDel(item){
      
    };

    getDel(data) {
        this.api.post('公告详情', data).then((res: any) => {
            this.del = res['data'];
        }).catch((res) => {
            this.msg.error(res.message);
        });
    }
}